[Wordpress MU] Changing the uploads directory
Posted
by Pedro Reis
on Stack Overflow
See other posts from Stack Overflow
or by Pedro Reis
Published on 2010-05-18T15:48:14Z
Indexed on
2010/05/18
15:50 UTC
Read the original article
Hit count: 257
wordpress-mu
|Wordpress
Hi,
I've looked everywhere and while there is solutions to change the uploads directory for all the blogs by changing this line in the wp-settings.php:
define( "BLOGUPLOADDIR", WP_CONTENT_DIR . "/blogs.dir/{$wpdb->blogid}/files/" );
I can't find a way of changing the directory for each blog individually, something like:
define( "BLOGUPLOADDIR", WP_CONTENT_DIR . "/blogs.dir/{$blog_name}/files/" );
But I have no idea how could I get the name of the blog from within the wp-settings.php as you can't use get_bloginfo('name');
outside of the template.
Anybody with a solution for this?
© Stack Overflow or respective owner